Check for NULL priv->popup_window in gtk_combo_box_popdown()
authorLuca Bacci <luca.bacci982@gmail.com>
Tue, 28 Aug 2018 16:39:05 +0000 (18:39 +0200)
committerLuca Bacci <luca.bacci982@gmail.com>
Tue, 28 Aug 2018 16:39:05 +0000 (18:39 +0200)
Fixes issue #125

gtk/gtkcombobox.c

index cf01278db5d831fac94589a938273a9efbf70d81..e6589b4c90a7147a94d4614b4db78b2813fa8c63 100644 (file)
@@ -2429,6 +2429,9 @@ gtk_combo_box_popdown (GtkComboBox *combo_box)
   if (!gtk_widget_get_realized (GTK_WIDGET (combo_box)))
     return;
 
+  if (!priv->popup_window)
+    return;
+
   if (!gtk_widget_is_drawable (priv->popup_window))
     return;